//
//  TSHomePresenter.h
//  TaShuo
//
//  Created by N-X on 2018/1/17.
//  Copyright © 2018年 MRNAN. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TSHotAreaPresenter.h"
#import "TSCityCommentPresenter.h"
@class TSHomePresenter;
@protocol TSHomePresenterDelegate <NSObject>

- (void)dataWithPresenter:(TSHomePresenter *)presenter didRefreshWithResult:(id)result errorArray:(NSArray *)errorArray;
- (void)dataWithPresenter:(TSHomePresenter *)presenter didLoadMoreWithResult:(id)result errorArray:(NSArray *)errorArray;
@end

@interface TSHomePresenter : NSObject
- (void)refreshData;
- (void)loadMoreData;
- (void)fetchDataWithCompletionHandle:(NetCompletionHandle)completionHandle;
- (NSArray *)headerImageArray; // 头部轮播图的数据
- (NSArray<TSHotAreaPresenter *> *)hotAreaArray;
- (NSArray<TSCityCommentPresenter *>*)cityCommentArray;
@property (nonatomic ,weak)id<TSHomePresenterDelegate>attachView;

@end
